package com.hqyj.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 试卷表
 * </p>
 *
 * @author rock
 * @since 2021-11-18
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class Samplepaper extends MyPage implements Serializable {

    private static final long serialVersionUID=1L;

    /**
     * 试卷编号
     */
    @TableId(value = "sample_id", type = IdType.AUTO)
    private Integer sampleId;

    /**
     * 试卷名
     */
    private String sampleTitle;

    /**
     * 创建时间
     */
    private Date sampleCreatetime;

    /**
     * 试卷满分
     */
    private Integer sampleFullscore;

    /**
     * 科目编号
     */

    private Integer subjectId;
    //试题
    @TableField(exist = false)
    private List<Practice> sampleList;
    /**
     * 随机生成试卷的单选题 题目数
     * */
    @TableField(exist = false)
    private Integer singleNumber;

    /**
     * 随机生成试卷的判断题 题目数
     * */
    @TableField(exist = false)
    private Integer judgeNumber;


    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    public Date getSampleCreatetime() {
        return sampleCreatetime;
    }

    public void setSampleCreatetime(Date sampleCreatetime) {
        this.sampleCreatetime = sampleCreatetime;
    }


}
